package com.ydcycloud.company.service.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smart.mvc.model.Pagination;
import com.ydcycloud.company.dao.CompanyDao;
import com.ydcycloud.company.model.Company;
import com.ydcycloud.company.model.Trade;
import com.ydcycloud.company.service.CompanyService;
import com.ydcycloud.sys.service.impl.BaseServiceImpl;

@Component("companyService")
public class CompanyServiceImpl  extends BaseServiceImpl<CompanyDao, Company, Integer>
implements CompanyService{

	@Autowired
	public void setDao(CompanyDao dao) {
		this.dao = dao;
	}

	@Override
	public Pagination<Map<String, Object>> findCompany(String companyName,
			String areaCode, String tradeName, Integer pageNo, Integer pageSize) {
		// TODO Auto-generated method stub
		return dao.findCompany(companyName,areaCode,tradeName,pageNo,pageSize);
	}

	@Override
	public Pagination<Map<String, Object>> getCompanyList(String companyName,
			Integer pageNo, Integer pageSize) {
		// TODO Auto-generated method stub
		return dao.getCompanyList(companyName, pageNo, pageSize);
	}

	@Override
	public List<Trade> findTradeName() {
		// TODO Auto-generated method stub
		return dao.findTradeName();
	}




	
}
